import defaultSettings from '@/settings'
import request from '@/utils/request'

export const apiUrlConfig = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/feeManage/PreferentialFeeManage/search`,
}



// 明细查询
export function save(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/PreferentialFeeManage/save`,
    method: 'post',
    data
  })
}

// 明细查询
export function update(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/PreferentialFeeManage/update`,
    method: 'post',
    data
  })
}

// 明细查询
export function del(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/PreferentialFeeManage/delete`,
    method: 'post',
    params:{discountId:data.discountId}
  })
}

// 明细详情
export function detail(params) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/feeManage/PreferentialFeeManage/detail`,
      method: 'get',
      params
  })
}
